import request from '@/utils/request'
export function getList (query) {
  return request({
    url: '/bbs/list',
    method: 'get',
    params: query
  })
}
export function insertNewArticle (data) {
  return request({
    url: '/bbs/insert',
    method: 'post',
    data: data
  })
}
export function getArtcileById (articleId) {
  return request({
    url: '/bbs/' + articleId,
    method: 'get'
  })
}

export function updateArticle (query) {
  return request({
    url: '/bbs',
    method: 'put',
    data: query
  })
}
